<if condition="$va.field neq null">
<!-- 单个日期 -->
<eq name="va['time_type']" value="1">
<volist name="va['field']" id="vv" key="i">
   <div class="session-on">
    <input type="hidden" name="field_id[]" value="{$vv.id}"/>
	<div class="row cl">
		<label class="form-label col-2"><strong>场次{$i}&nbsp;&nbsp;</strong>
		</label>
		<a class="formControls" onclick="del_div(this)" href="javascript:void(0)" style="text-decoration:none;display: inline-block;" >
            <i class="Hui-iconfont">&#xe6e2;</i>
        </a>
	</div>
	<div class="row cl">
			<label class="form-label col-2">&nbsp;</label>
			<div class="formControls col-10 skin-minimal">
				<div class="radio-box">
		          	<input type="checkbox" id="nore{$i}" name="is_order[]"  value="1" <if condition="$vv.is_order eq '1'">checked="checked"</if>/>
		          	<label for="nore{$i}">具体以预约时间为准</label>
		        </div>
			</div>
		</div>
	<div class="row cl">
		<label class="form-label col-2">活动日期：</label>
		<div class="formControls col-10">
			<input type="text" name="activity_start_date[]" id="" datatype="*" placeholder="开始日期" class="input-text Wdate" onfocus="WdatePicker({minDate:'%y-%M-%d'})" value="{$vv.activity_start_date}"/>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-2">活动时间：</label>
		<div class="formControls col-10">
			<input type="text" name="activity_start_time[]" datatype="*" id="logmin-{$i}" placeholder="开始时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_start_time}"/>
			-
			<input type="text" name="activity_end_time[]" datatype="*" id="logmax-{$i}" placeholder="结束时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_end_time}"/>
		</div>
	</div>
	<div class="row cl" data-chang="{$i}">
		<label class="form-label col-2">票价类型：</label>
		<div class="formControls col-10">
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="130px">票名</th>
						<th width="90px">现价</th>
						<th width="90px">原价</th>
						<th width="60px">数量</th>
						<th width="150px">限购</th>
						<th>说明</th>
						<th width="30px">操作</th>
					</tr>
				</thead>
				<tbody>
				<volist name="vv['ticket']" id="pp" key="k">
					<tr>
						<td><input type="text" name="ticket_name{$i}[]" datatype="*" id="" class="input-text" placeholder="如成人票..." value="{$pp.ticket_name}"/></td>
						<td><input type="text" name="true_price{$i}[]" datatype="*" id="" class="input-text" value="{$pp.true_price}"/></td>
						<td><input type="text" name="old_price{$i}[]" datatype="*" id=""  class="input-text" placeholder="没有请填0" value="{$pp.old_price}"/></td>
						<td><input type="text" name="number{$i}[]" datatype="*" class="input-text" value="{$pp.number}"/></td>
						<td>
							<input type="text" name="ticket_limit{$i}[]" datatype="*" id="" class="input-text" placeholder="单个用户可预订数量" value="{$pp.ticket_limit}"/>
						</td>
						<td><input type="text" name="ticket_explain{$i}[]" id="" class="input-text" placeholder="针对该价格的说明信息" value="{$pp.ticket_explain}"/></td>
						<td>
						    <input type="hidden" name="ticket_id{$i}[]" value="{$pp.id}"/>
							<a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none" onclick="del_tr(this)"><i class="Hui-iconfont">&#xe6e2;</i></a>
						</td>
					</tr>
				</volist>
				</tbody>
			</table>
			<div class="text-c mt-20">
				<button type="button" class="btn btn-primary radius" onclick="add_piao(this)">增加票种</button>
			</div>
		</div>
	</div>
</div>
</volist>  
</eq>

<eq name="va['time_type']" value="2">
<!-- 按周重复 -->
<volist name="va['field']" id="vv" key="i">
   
   <div class="session-on">
        <input type="hidden" name="field_id[]" value="{$vv.id}"/>
		<div class="row cl">
			<label class="form-label col-2"><strong>场次{$i}&nbsp;&nbsp;</strong></label>
			<a class="formControls" onclick="del_div(this)" href="javascript:void(0)" style="text-decoration:none;display: inline-block;" >
                  <i class="Hui-iconfont">&#xe6e2;</i>
            </a>
		</div>
		<div class="row cl">
			<label class="form-label col-2">&nbsp;</label>
			<div class="formControls col-10 skin-minimal">
				<div class="radio-box">
		          	<input type="checkbox" id="nore{$i}" name="is_order[]"  value="1" <if condition="$vv.is_order eq '1'">checked="checked"</if>/>
		          	<label for="nore{$i}">具体以预约时间为准</label>
		        </div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动日期：</label>
			<div class="formControls col-10">
				<input type="text" name="activity_start_date[]" id="mind-{$i}" datatype="*" placeholder="开始日期" style="width: 180px" class="input-text Wdate" onfocus="WdatePicker({minDate:'%y-%M-%d',maxDate:'2250-10-01'})" value="{$vv.activity_start_date}"/>
				-
				<input type="text" name="activity_end_date[]" id="maxd-{$i}" datatype="*" placeholder="结束日期" style="width: 180px" class="input-text Wdate" onfocus="WdatePicker({minDate:'1990-01-01'})" value="{$vv.activity_end_date}"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动频率：</label>
			<div class="formControls col-10 skin-minimal">
				<div class="check-box">
					<input type="checkbox" id="week1-{$i}" name="week{$i}[]" value="1" <if condition="in_array('1',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week1-{n}">周一</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week2-{$i}" name="week{$i}[]" value="2" <if condition="in_array('2',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week2-{n}">周二</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week3-{$i}" name="week{$i}[]" value="3" <if condition="in_array('3',$vv['activity_week'])">checked="checked"</if>/> 
					<label for="week3-{n}">周三</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week4-{$i}" name="week{$i}[]" value="4" <if condition="in_array('4',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week4-{n}">周四</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week5-{$i}" name="week{$i}[]" value="5" <if condition="in_array('5',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week5-{n}">周五</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week6-{$i}" name="week{$i}[]"  value="6" <if condition="in_array('6',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week6-{n}">周六</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week7-{$i}" name="week{$i}[]"  value="0" <if condition="in_array('0',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week7-{n}">周日</label>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动时间：</label>
			<div class="formControls col-10">
				<input type="text" name="activity_start_time[]" id="logmin-{$i}" datatype="*" placeholder="开始时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_start_time}"/>
				-
				<input type="text" name="activity_end_time[]" id="logmax-{$i}" datatype="*" placeholder="结束时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_end_time}"/>
			</div>
		</div>
		<div class="row cl" data-chang="{$i}">
		<label class="form-label col-2">票价类型：</label>
		<div class="formControls col-10">
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="130px">票名</th>
						<th width="90px">现价</th>
						<th width="90px">原价</th>
						<th width="60px">数量</th>
						<th width="150px">限购</th>
						<th>说明</th>
						<th width="30px">操作</th>
					</tr>
				</thead>
				<tbody>
				<volist name="vv['ticket']" id="pp" key="k">
					<tr>
						<td><input type="text" name="ticket_name{$i}[]" datatype="*" id="" class="input-text" placeholder="如成人票..." value="{$pp.ticket_name}"/></td>
						<td><input type="text" name="true_price{$i}[]" datatype="*" id="" class="input-text" value="{$pp.true_price}"/></td>
						<td><input type="text" name="old_price{$i}[]" datatype="*" id=""  class="input-text" placeholder="没有请填0" value="{$pp.old_price}"/></td>
						<td><input type="text" name="number{$i}[]"  datatype="*" class="input-text" value="{$pp.number}"/></td>
						<td>
							<input type="text" name="ticket_limit{$i}[]" datatype="*" id="" class="input-text" placeholder="单个用户可预订数量" value="{$pp.ticket_limit}"/>
						</td>
						<td><input type="text" name="ticket_explain{$i}[]" id="" class="input-text" placeholder="针对该价格的说明信息" value="{$pp.ticket_explain}"/></td>
						<td>
						    <input type="hidden" name="ticket_id{$i}[]" value="{$pp.id}"/>
							<a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none" onclick="del_tr(this)"><i class="Hui-iconfont">&#xe6e2;</i></a>
						</td>
					</tr>
				</volist>
				</tbody>
			</table>
			<div class="text-c mt-20">
				<button type="button" class="btn btn-primary radius" onclick="add_piao(this)">增加票种</button>
			</div>
		</div>
	</div>
</div>
</volist>
</eq>
<eq name="va['time_type']" value="3">
   <!-- 连续日期 -->
   <volist name="va['field']" id="vv" key="i">
      
      <div class="session-on">
        <input type="hidden" name="field_id[]" value="{$vv.id}"/>
		<div class="row cl">
			<label class="form-label col-2"><strong>场次{$i}&nbsp;&nbsp;</strong></label>
			<a class="formControls" onclick="del_div(this)" href="javascript:void(0)" style="text-decoration:none;display: inline-block;" >
                  <i class="Hui-iconfont">&#xe6e2;</i>
            </a>
		</div>
		<div class="row cl">
			<label class="form-label col-2">&nbsp;</label>
			<div class="formControls col-10 skin-minimal">
				<div class="radio-box">
		          	<input type="checkbox" id="nore{$i}" name="is_order[]"  value="1" <if condition="$vv.is_order eq '1'">checked="checked"</if>/>
		          	<label for="nore{$i}">具体以预约时间为准</label>
		        </div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动日期：</label>
			<div class="formControls col-10">
				<input type="text" name="activity_start_date[]" datatype="*" id="mind-{$i}" placeholder="开始日期" style="width: 180px" class="input-text Wdate" onfocus="WdatePicker({minDate:'%y-%M-%d',maxDate:'2555-01-01'})" value="{$vv.activity_start_date}"/>
				-
				<input type="text" name="activity_end_date[]" datatype="*" id="maxd-{$i}" placeholder="结束日期" style="width: 180px" class="input-text Wdate" onfocus="WdatePicker({minDate:'1990-01-01'})" value="{$vv.activity_end_date}"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动时间：</label>
			<div class="formControls col-10">
				<input type="text" name="activity_start_time[]" datatype="*" id="logmin-{$i}" placeholder="开始时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_start_time}"/>
				-
				<input type="text" name="activity_end_time[]" datatype="*" id="logmax-{$i}" placeholder="结束时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_end_time}"/>
			</div>
		</div>
		<div class="row cl" data-chang="{$i}">
			<label class="form-label col-2">票价类型：</label>
			<div class="formControls col-10">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="130px">票名</th>
							<th width="90px">现价</th>
							<th width="90px">原价</th>
							<th width="60px">数量</th>
							<th width="150px">限购</th>
							<th>说明</th>
							<th width="30px">操作</th>
						</tr>
					</thead>
					<tbody>
					<volist name="vv['ticket']" id="pp" key="k">
						<tr>
							<td><input type="text" name="ticket_name{$i}[]" datatype="*" id="" class="input-text" placeholder="如成人票..." value="{$pp.ticket_name}"/></td>
							<td><input type="text" name="true_price{$i}[]" datatype="*" id="" class="input-text" value="{$pp.true_price}"/></td>
							<td><input type="text" name="old_price{$i}[]" datatype="*" id=""  class="input-text" placeholder="没有请填0" value="{$pp.old_price}"/></td>
							<td><input type="text" name="number{$i}[]"  datatype="*" class="input-text" value="{$pp.number}"/></td>
							<td>
								<input type="text" name="ticket_limit{$i}[]" datatype="*" id="" class="input-text" placeholder="单个用户可预订数量" value="{$pp.ticket_limit}"/>
							</td>
							<td><input type="text" name="ticket_explain{$i}[]" id="" class="input-text" placeholder="针对该价格的说明信息" value="{$pp.ticket_explain}"/></td>
							<td>
							    <input type="hidden" name="ticket_id{$i}[]" value="{$pp.id}"/>
								<a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none" onclick="del_tr(this)"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					</volist>
					</tbody>
				</table>
				<div class="text-c mt-20">
					<button type="button" class="btn btn-primary radius" onclick="add_piao(this)">增加票种</button>
				</div>
			</div>
		</div>
	</div>
   </volist>
</eq>
<eq name="va['time_type']" value="4">
   <!-- 长期举办 -->
   <volist name="va['field']" id="vv" key="i">
       <div class="session-on">
         <input type="hidden" name="field_id[]" value="{$vv.id}"/>
		<div class="row cl">
			<label class="form-label col-2"><strong>场次{$i}&nbsp;&nbsp;</strong></label>
			<a class="formControls" onclick="del_div(this)" href="javascript:void(0)" style="text-decoration:none;display: inline-block;" >
                  <i class="Hui-iconfont">&#xe6e2;</i>
            </a>
		</div>
		<div class="row cl">
			<label class="form-label col-2">&nbsp;</label>
			<div class="formControls col-10 skin-minimal">
				<div class="radio-box">
		          	<input type="checkbox" id="nore{$i}" name="is_order[]"  value="1" <if condition="$vv.is_order eq '1'">checked="checked"</if>/>
		          	<label for="nore{$i}">具体以预约时间为准</label>
		        </div>
			</div>
		</div>
		<div class="row cl" >
			<label class="form-label col-2">活动频率：</label>
			<div class="formControls col-10 skin-minimal">
				<div class="check-box">
					<input type="checkbox" id="week1-{$i}" name="week{$i}[]" value="1" <if condition="in_array('1',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week1-{$i}">周一</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week2-{$i}" name="week{$i}[]" value="2" <if condition="in_array('2',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week2-{$i}">周二</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week3-{$i}" name="week{$i}[]" value="3" <if condition="in_array('3',$vv['activity_week'])">checked="checked"</if>/> 
					<label for="week3-{$i}">周三</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week4-{$i}" name="week{$i}[]" value="4" <if condition="in_array('4',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week4-{$i}">周四</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week5-{$i}" name="week{$i}[]" value="5" <if condition="in_array('5',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week5-{$i}">周五</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week6-{$i}" name="week{$i}[]" value="6" <if condition="in_array('6',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week6-{$i}">周六</label>
				</div>
				<div class="check-box">
					<input type="checkbox" id="week7-{$i}" name="week{$i}[]" value="0" <if condition="in_array('0',$vv['activity_week'])">checked="checked"</if>/>
					<label for="week7-{$i}">周日</label>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">活动时间：</label>
			<div class="formControls col-10">
				<input type="text" name="activity_start_time[]" datatype="*" id="logmin-{$i}" placeholder="开始时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_start_time}"/>
				-
				<input type="text" name="activity_end_time[]" datatype="*" id="logmax-{$i}" placeholder="结束时间" class="input-text Wdate clockpicker"  style="width:180px" value="{$vv.activity_end_time}"/>
			</div>
		</div>
		<div class="row cl" data-chang="{$i}">
			<label class="form-label col-2">票价类型：</label>
			<div class="formControls col-10">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="130px">票名</th>
							<th width="90px">现价</th>
							<th width="90px">原价</th>
							<th width="60px">数量</th>
							<th width="150px">限购</th>
							<th>说明</th>
							<th width="30px">操作</th>
						</tr>
					</thead>
					<tbody>
					<volist name="vv['ticket']" id="pp" key="k">
						<tr>
							<td><input type="text" name="ticket_name{$i}[]" datatype="*"id="" class="input-text" placeholder="如成人票..." value="{$pp.ticket_name}"/></td>
							<td><input type="text" name="true_price{$i}[]"  datatype="*" id="" class="input-text" value="{$pp.true_price}"/></td>
							<td><input type="text" name="old_price{$i}[]" datatype="*" id="" class="input-text" placeholder="没有请填0" value="{$pp.old_price}"/></td>
							<td><input type="text" name="number{$i}[]" datatype="*"  class="input-text" value="{$pp.number}"/></td>
							<td>
								<input type="text" name="ticket_limit{$i}[]" datatype="*" id="" class="input-text" placeholder="单个用户可预订数量" value="{$pp.ticket_limit}"/>
							</td>
							<td><input type="text" name="ticket_explain{$i}[]" id="" class="input-text" placeholder="针对该价格的说明信息" value="{$pp.ticket_explain}"/></td>
							<td>
							    <input type="hidden" name="ticket_id{$i}[]" value="{$pp.id}"/>
								<a title="删除" href="javascript:;" class="ml-5" style="text-decoration:none" onclick="del_tr(this)"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					</volist>
					</tbody>
				</table>
				<div class="text-c mt-20">
					<button type="button" class="btn btn-primary radius" onclick="add_piao(this)">增加票种</button>
				</div>
			</div>
		</div>
	</div>
   </volist>
</eq>
</if>